package c.x.jy.dao.dao;

import c.x.jy.dao.entity.NoticeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-31 12:32:03
 */
@Mapper
public interface NoticeDao extends BaseMapper<NoticeEntity> {
    @Select("SELECT * from t_notice  WHERE type=${type} ORDER BY create_date Desc limit 1;")
    NoticeEntity getNew(Integer type);
}

